package com.wsz.logistic.controller.admin;

import com.wsz.logistic.common.util.R;
import com.wsz.logistic.service.EchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author PangJunjie
 * @Date 2024/3/12/012
 */
@RestController
@RequestMapping("/admin/echarts")
public class EchartsController {
    @Autowired
    private EchartsService echartsService;

    @GetMapping("/bar")
    public R getBarData() {
        return echartsService.getBarList();
    }

    @GetMapping("/pie")
    public R getPieData() {
        return echartsService.getPieList();
    }

    @GetMapping("/line")
    public R getLineData() {
        return echartsService.getLineList();
    }


}
